<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>判断4的倍数且不是100倍数案例</title>
</head>

<body>
  <script>
    let num = prompt('请输入需要计算的年份')
    let result = num % 4 == 0 && num % 100 !== 0
    document.write(`判断4的倍数且不是100倍数${result}`)


  </script>
</body>

</html>